package com.masterclient.app.modules.shop.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.eoner.baselibrary.bean.shop.DealerStockItemBean;
import com.masterclient.app.R;

/**
 * @auther hjian
 * @date 2020/10/13.
 */
public class DealerStockAdapter extends BaseQuickAdapter<DealerStockItemBean, BaseViewHolder> {

    public DealerStockAdapter() {
        super(R.layout.item_dealer_stock);
    }

    @Override
    protected void convert(BaseViewHolder helper, DealerStockItemBean item) {

            helper.setText(R.id.item_dealer_stock_sku, item.getAttribute())
                    .setText(R.id.item_dealer_stock_total, item.getQty_total())
                    .setText(R.id.item_dealer_stock_my, item.getQty())
                    .setText(R.id.item_dealer_stock_warehouse, item.getStorage_qty());
    }
}
